<?php
if($_GET['type']=='face'){
	require 'AjaxUpload.class.php';
}else if($_GET['type']=='prf'){
	require 'AjaxUpload-prf.class.php';
}else if($_GET['type']=='pic'){
	require 'AjaxUpload-add.class.php';
}
if ($_POST) {
	$form_name = $_GET['form_name'];
    $file_size = intval($_GET['file_size']);
	$mid = $_GET['mid'];
    $upload = new AjaxUpload($form_name, $file_size, $mid);
}
?>